#!/bin/bash
weather=/tmp/pogoda.txt
linenum=$(awk '{print $'$1'}' /tmp/pogoda.txt | sed -n '/℃/=')
line1=$[$linenum+1]
line2=$[$linenum+2]
tianqi=$(awk '{print $'$1'}' /tmp/pogoda.txt | sed -n ''$line1'p' )
temper=$(awk '{print $'$1'}' /tmp/pogoda.txt | sed -n ''$linenum'p' )
wind=$(awk '{print $'$1'}' /tmp/pogoda.txt | sed -n ''$line2'p' )
echo $tianqi  $temper  $wind
